package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Role;

import java.util.List;

//服务接口
public interface RoleService {
    public void add(Role role,Integer[] menuIds,Integer[] permissionIds);
    public PageResult pageQuery(QueryPageBean queryPageBean);
    public void deleteById(Integer id);
    public void edit(Role role,Integer[] menuIds,Integer[] permissionIds);
    public Role findById(Integer id);
    public List<Role> findAll();

    List<Integer> findpermissionIdsByroleId(Integer id);

    List<Integer> findmenuIdsByroleId(Integer id);
}
